package com.bawei.a2010douyin.ui.xihuan;

import android.widget.ImageView;

import com.bawei.a2010douyin.R;
import com.bawei.a2010douyin.base.utils.GlideUtils;
import com.bawei.a2010douyin.entity.VideoEntity;
import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;

import androidx.annotation.NonNull;

public class XiHuanAdapter extends BaseQuickAdapter<VideoEntity, BaseViewHolder> {
    public XiHuanAdapter(int layoutResId) {
        super(layoutResId);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder baseViewHolder, VideoEntity videoEntity) {
        ImageView imageView = baseViewHolder.getView(R.id.iv);
        GlideUtils.getInstance().loadImage(getContext(),videoEntity.getHeadpath(),imageView);
    }
}
